/*
 * @: 
 * @version: 1.0
 * @Author: ziwei
 * @Date: 2021-10-17 15:21:39
 * @LastEditors: ziwei
 * @LastEditTime: 2021-10-17 18:13:58
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Foo from './components/Foo.vue'
Vue.use(VueRouter)

export default () => {
    const router = new VueRouter({
        mode: 'history',
        routes: [{
                path: "/",
                component: Foo
            },
            {
                path: "/bar",
                component: () => import('./components/Bar.vue')
            }
        ]
    })
}